package com.robot.admin.dao;

import com.robot.admin.pojo.Admin;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * admin数据访问接口
 *
 * @author wuyunbin
 */
public interface AdminDao extends JpaRepository<Admin, String>, JpaSpecificationExecutor<Admin> {
    /**
     * 通过手机号找管理员
     *
     * @param phone
     * @return
     */
    Admin findAdminByPhone(String phone);

}
